using System;
using Microsoft.SPOT;

namespace eHouse
{
    class WindowsBL
    {
        private static WindowsBL instance;

        public static WindowsBL GetInstance()
        {
            if (instance == null)
                instance = new WindowsBL();

            return instance;
        }

        public bool[] GetState()
        {
            bool[] state = new bool[4];

            state[0] = Drivers.getInstance().window_kitchen.Read();
            state[1] = Drivers.getInstance().window_living.Read();
            state[2] = Drivers.getInstance().window_bedroom.Read();
            state[3] = Drivers.getInstance().window_bathroom.Read();

            return state;
        }        
    }
}
